//
//  SKXFriendManager.h
//  NewChat
//
//  Created by songKX on 16/3/5.
//  Copyright © 2016年 蓝鸥. All rights reserved.
//

#import <Foundation/Foundation.h>


typedef void(^VocieBlock) (NSString *path);

typedef void(^messageBlock) (EMMessage * temp);

@interface SKXFriendManager : NSObject


@property (nonatomic , strong)NSMutableArray *friendAcceptArray;
@property (nonatomic , strong)NSMutableArray *historyAcceptArray;

+(instancetype)sharaFriendManager;

//添加好友

-(void)addFriendWithName:(NSString *)name;


//录音

-(void)startRecordVoiceWithFileName:(NSString *)fileName;



//结束录音

-(void)stopRecordVoiceWithBlock:(VocieBlock)block;

//取消录音
-(void)cancelRecordVoice;


//发送录音
-(void)sendVoiceMessageto:(NSString *)chater With:(messageBlock)block;

//播放语音

+(void)playVoiceWith:(EMMessage *)message WithMessageLabel:(UILabel *)label Bool:(BOOL)receiver;

+(void)playVoiceWith:(NSString *)filePath WithLabel:(UIButton *)button;

//网络监测


+(void)checkNetWork:(void(^)(NSString *))block;

//手机震动

+(void)phoneVibrate;

//调用系统提示音

+(void)phoneVoice;

//停止播放

+(void)stop;

//计算时间显示

+(NSString *)timeStr:(long long)timestamp;


@end
